// 引入全部的全局组件
import SvgIcon from '@/components/SvgIcon/SvgIcon.vue'
const allGlobalComponent:any = { SvgIcon,Category }
// 引入element-plus提供全部图标组件
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import Category from '@/components/Category/index.vue'
//对外暴露插件对象
export default {
  install(app:any) {
    Object.keys(allGlobalComponent).forEach((key) => {
      app.component(key, allGlobalComponent[key])
    })
    //element-plus提供的图标注册为全局组件
    for (const [key,component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key,component)
    }
  },
}
